<!--[if IE 7]>
<!DOCTYPE>
<html lang="en">
	<head>
<![endif]-->
<!--[if IE 8]>
<!DOCTYPE>
<html lang="en">
    <head>
           <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<![endif]-->
<![if gte IE 9]>
<!DOCTYPE HTML>
<html lang="en">
	<head>
<![endif]>
    <title>Gradient: Bubble #6</title>
	<script type="text/javascript" src="../../../../dojo/dojo.js" data-dojo-config="isDebug: true"></script>
    <script>
		dojo.require("dojox.charting.Chart");
        dojo.require("dojox.charting.axis2d.Default");
        dojo.require("dojox.charting.plot2d.Bubble");
		dojo.require("dojox.charting.Theme");

        run = function(){
            dojo.attr("start", "disabled", true);
            
            var theme1 = new dojox.charting.Theme({
                    seriesThemes: [
                        {
                            fill: {
                                type: "radial", space: "shape", cx: 0, cy: 0, r: 100,
                                colors: [{ offset: 0, color: "#ed0" }, { offset: 0.5, color: "white" }, { offset: 1, color: "#ed0" }]
                            }
                        },
                        {
                            fill: {
                                type: "radial", space: "shape", cx: 0, cy: 0, r: 100,
                                colors: [{ offset: 0, color: "#e00" }, { offset: 0.5, color: "#eaa" }, { offset: 1, color: "#e00" }]
                            }
                        },
                        {
                            fill: {
                                type: "radial", space: "shape", cx: 0, cy: 0, r: 100,
                                colors: [{ offset: 0, color: "#0e0" }, { offset: 0.5, color: "#aea" }, { offset: 1, color: "#0e0" }]
                            }
                        },
                        {
                            fill: {
                                type: "radial", space: "shape", cx: 0, cy: 0, r: 100,
                                colors: [{ offset: 0, color: "#00e" }, { offset: 0.5, color: "#aae" }, { offset: 1, color: "#00e" }]
                            }
                        }
                    ]
                });

            var chart1 = new dojox.charting.Chart("c1").
                setTheme(theme1).
                addAxis("x", {minorLabels: false}).
                addAxis("y", {vertical: true, minorLabels: false, max: 10}).
                addPlot("default", {type: "Bubble"}).
				addSeries("Series A", [
					{ x: 0.5, y: 5, size: 1.4 },
					{ x: 1.5, y: 1.5, size: 4.5 },
					{ x: 2, y: 9, size:1.5 },
					{ x: 5, y: 0.3, size:0.8 }
				]).
				addSeries("Series B", [
					{ x: 0.3, y: 8, size: 2.5 },
					{ x: 4, y: 8, size:1.1 },
					{ x: 5.5, y: 2, size: 3.2 },
					{ x: 3, y: 6, size: 3.2 }
				]).
                render();
        };
        
        dojo.addOnLoad(run);
    </script>
</head>
<body>
    <p><button id="start" onclick="run();">Start!</button></p>
	<h1>radial gradient</h1>
	<p>Bubble</p>
    <div id="c1" style="position: relative; width: 600px; height: 400px;"></div>
</body>
</html>
